package cn.xiaolang.function.design_pattern.command;

/**
 *
 * @author fuhw/Dean
 * @date 2019-07-08
 */
public class Invoker {

    private final Command command;

    public Invoker(Command command) {
        this.command = command;
    }

    public void call() {
        command.execute();
    }

}
